#include "graph.h"
#include "writer.h"
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char **argv) {
    // for (int i = 0; i < argc; ++i)
    //     printf("%s ", argv[i]);

    Graph M = GraphGenerator(argc, argv);
    Writer writer(M);
    writer.writeMetaData(M);
    for (int i = 0; i < 300; ++i) {
        M.update();
        M.count();
        writer.writeTempData(M);
        if (M.nE == 0 && M.nI == 0)
            break;
    }

    // cout << endl;

    return EXIT_SUCCESS;
}
